package com.alvis.exam.service;

import com.alvis.exam.domain.TClass;
import com.alvis.exam.domain.TClassExample;
import com.alvis.exam.repository.TClassMapper;
import com.alvis.exam.service.impl.BaseServiceImpl;
import com.alvis.exam.viewmodel.admin.administration.ClassEditRequestVM;
import com.alvis.exam.viewmodel.admin.administration.ClassPageRequestVM;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.util.StringUtil;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

public interface ClassService extends BaseService<TClass> {
    List<TClass> getAll();

    List<TClass> querySelective(ClassPageRequestVM model);

    void saveOrUpdateBatch(List<TClass> list);

    void deleteAll();

    boolean isClassNameValid(ClassEditRequestVM model);
}
